home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_c
/
lsdoor09.zip
/
EXAMPLE1.CPP
< prev
next >
Wrap
Text File
|
1996-05-15
|
770b
|
25 lines
// Example1.Cpp - Hello World program..
#define MainModule
#include "LsDoor.H"
char *errorModule( void ) // Give some ID in case there's an
{ // error and the sysop checks the
return "HelloW"; // logs, this will tell him/her which
} // program had the error.
void main( void )
{
if( !DoorInit( doorsysDISABLE ) ) exit(1); // Let's get rolling.
display( "\nHello @GGreen world!" ); // Hello Green world!
display( "\nThe @RRug @BIs @GGreen!" ); // The Rug Is Green!
exit(0); // Always use exit()
// NEVER use return from main(), always exit().
}
// End of Example1.Cpp